<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DesignerOrder',
    'namespace'     => 'Beerus\\Modules\\DesignerOrder\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 设计师付款价格白名单
    $router->get('/pay_white', 'DesignerPayWhiteController@index')->name('pay.white');
    $router->get('/pay_white/create', 'DesignerPayWhiteController@edit');
    $router->get('/pay_white/{id}/edit', 'DesignerPayWhiteController@edit');
    $router->post('/pay_white/save', 'DesignerPayWhiteController@editSubmit');

    // 设计师订单列表
	$router->post('/orders/save', 'DesignerOrderController@save');
	$router->get('/orders/export', 'DesignerOrderController@export');
    $router->get('/orders/exportRefund', 'DesignerOrderController@exportRefund');
	$router->post('/orders/saveOffline', 'DesignerOrderController@saveOffline');
    $router->get('/orders/getUserInfo', 'DesignerOrderController@getUserInfo');
	$router->get('/orders/{tab_id}', 'DesignerOrderController@index')->name('order.list');
	$router->get('/orders/{tab_id}/create', 'DesignerOrderController@editOffline');
	$router->get('/orders/{tab_id}/{id}/edit', 'DesignerOrderController@edit');
});
